﻿@model TuanAnhPersonalWeb.Models.aspnet_Roles
@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

<h2>Edit Role</h2>

    @using (Html.BeginForm()) {
        @Html.ValidationSummary("EDIT FAILED") 
        
        <fieldset>
            <legend>Fields</legend>
            @Html.HiddenFor(model=>model.ApplicationId) 
             @Html.HiddenFor(model=>model.RoleId) 
              @Html.HiddenFor(model=>model.LoweredRoleName) 
            
            
            <div class="editor-label">
                @Html.LabelFor(model => model.RoleName) 
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.RoleName) 
                @Html.ValidationMessageFor(model => model.RoleName) 
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.Description) 
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.Description) 
                @Html.ValidationMessageFor(model => model.Description) 
            </div>
            
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

  } 

    <div>
        @Html.ActionLink("Back to List", "Index") 
    </div>

